#define _CRT_SECURE_NO_WARNINGS 1
#define a 10
#define b a
#include<stdio.h>
int main()
{
	int arr[a] = {1,2,3,4,5,6,7,8,9,10};
	int arr1[b] = { 0 };
	int i = 0; int j = 0;
	for (i = 0; i < a; i++)
	{
		if (arr[i] % 2 != 0)
		{
			arr1[j] = arr[i]; j++;
		}
	}
	for (i = 0; i < a; i++)
	{
		if (arr[i] % 2 == 0)
		{
			arr1[j] = arr[i]; j++;
		}
	}
	for(i = 0; i < a; i++)
	{
		printf("%d ", arr1[i]);
	}
	return 0;
}